<?php
namespace Home\Controller;
use Think\Controller;

// 前台首页控制器
class IndexController extends Controller {

    public function index(){
       $this->display();
    }

    // 注册
    public function register(){
    	if (IS_POST) {
    		$model = new \Model\UserModel();
    		$data = $model->create();//字段映射
    		var_dump($data);
    	}

    	$this->display();
    }
}